home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / uxutl22a.zip / usage < prev   
Text File  |  1993-05-27  |  23KB  |  777 lines

  1. basename - Display file namename
  2.  
  3.     usage: basename string [suffix]
  4.  
  5.     Display file name.  If suffix is supplied and matches the suffix on the
  6.     filename, the suffix is stripped from the filename.
  7.  
  8. bmgrep - Bmgrep is a fast pattern matching utility, intended to be almost
  9.      identical in functionality to fgrep (ugh!) but much faster. It uses
  10.      the Boyer-Moore algorithm.
  11.  
  12.     usage: bmgrep [-chlnsx1] [-e pattern] [-f file] pattern files
  13.  
  14.     -c:    Count of matching lines
  15.     -h:    No filenames in output
  16.     -l:    List of files containing the pattern
  17.     -n:    Character offset of the pattern
  18.     -s:    Silent mode
  19.     -x:    Only lines which match entirely
  20.     -1:    Stop search after first match
  21.  
  22.  
  23. cal - Display calendar
  24.  
  25.     usage: cal [month] year
  26.  
  27.     Display the calendar for month year.  If month not supplied, display
  28.     the full year calendar.  Note:  month can be the month number or name;
  29.     93 is 93 AD not 1993.
  30.  
  31.  
  32. cat - Concatenate files
  33.  
  34.     usage: cat [-usvtenqbTB] files
  35.  
  36.     -q:    No error reports
  37.     -u:    Unbuffered output
  38.     -s: Strip multiple blank lines
  39.     -v: Print control characters as ^X
  40.     -t:    Print tabs as ^T
  41.     -e: Print $ at end of line
  42.     -n:    Print line number
  43.     -b: Print block number
  44.     -T: Force stdout into text mode (CR/LF translation)
  45.     -B: Force stdout into binary mode (no CR/LF translation)
  46.  
  47.  
  48. cdiff - Context difference
  49.  
  50.     usage: cdiff old new
  51.  
  52.  
  53. cgrep - Search file for pattern and display context
  54.  
  55.     usage: cgrep [-vcilnbs] [-a|w lines] [-e string] [-f file] [string] [files..]
  56.  
  57.     -a num    Set the number of lines to be displayed before (if num is
  58.         negative) or after (if num is positive) the matched line.
  59.     -w num    Set the size of the context window.
  60.     -v:        All lines but those matching are printed.
  61.     -c:        Only a count of    matching lines is printed.
  62.     -i:        Ignore upper/lower case    distinction during comparisons.
  63.     -l:        Only the names of files    with matching lines are    listed (once),
  64.         separated by new-lines.
  65.     -n:        Each line is preceded by its relative line number in the file.
  66.     -b:        Each line is preceded by the block number on which it was found.
  67.         This is sometimes useful in locating disk block numbers by
  68.         context.
  69.     -s:        The error messages produced for    nonexistent or unreadable files
  70.         are suppressed.
  71.     -e expression
  72.         Same as a simple expression argument, but useful when the
  73.         expression begins with a -.
  74.     -f file    The regular expression list is taken from the file.
  75.  
  76.  
  77. chmod - Change file attributes
  78.  
  79.     usage: chmod [-R] [absolute-mode | symbolic-mode | string-mode] files
  80.  
  81.     -R:    Recurse down directories
  82.  
  83.     symbolic mode
  84.  
  85.      A symbolic mode has the form
  86.  
  87.         [who] op permission [op permission ...]
  88.  
  89.      The who value is any combination of the following:
  90.  
  91.          u   Sets user permissions.
  92.          g   Sets group permissions.
  93.          o   Sets other permissions.
  94.          a   Sets all permissions; this is the default.
  95.  
  96.      Group and Other permissions are mapped to user permissions on MSDOS
  97.      and OS/2.
  98.  
  99.      The op value gives the action to take:
  100.  
  101.          +   Turns on a permission.
  102.          -   Turns off a permission.
  103.          =   Turns on the specified permissions and turns off all others.
  104.  
  105.      The permission value is any combination of the following:
  106.  
  107.          r   Read permission.  Ignored for MSDOS & OS/2
  108.          x   Execute permission.  Ignored for MSDOS & OS/2
  109.          w   Write permission.  
  110.          h   HIDDEN attribute. 
  111.          a   ARCHIVE attribute.  
  112.          s   Setuid/Setgid bit. On MSDOS and OS/2 this maps to the
  113.              SYSTEM attribute.
  114.          t   Text bit.  On MSDOS and OS/2 this maps to the ARCHIVED
  115.              attribute.
  116.  
  117.     absolute mode
  118.  
  119.         A octal value made up using by ORing the following values.  Note
  120.         that some values may be invalid.  These are translated into the
  121.         appropriate MSDOS/OS2 values.
  122.  
  123.         4000   HIDDEN Attribute
  124.         2000   SYSTEM Attribute
  125.         1000   ARCHIVE Attribute
  126.         0400   User read. Ignored on MSDOS and OS/2
  127.         0200   User write
  128.         0100   User execute. Ignored on MSDOS and OS/2
  129.         0040   Group read. Ignored on MSDOS and OS/2
  130.         0020   Group write (mapped to user write attribute).
  131.         0010   Group execute. Ignored on MSDOS and OS/2
  132.         0004   Other read. Ignored on MSDOS and OS/2
  133.         0002   Other write (mapped to user write attribute).
  134.         0001   Other execute. Ignored on MSDOS and OS/2
  135.  
  136.         If the last character is a d (as in 001d), the absolute DOS
  137.         values listed below are assumed and no translation takes place.
  138.  
  139.         001 - Read only
  140.         002 - Hidden
  141.         004 - system
  142.         040 - Archived
  143.  
  144.     string mode
  145.         A string matching the output long form for the mode from ls is
  146.         required (rxw------, for example).
  147.  
  148.  
  149. cmp - Compare two files
  150.  
  151.     usage: cmp [-ls] file1 file2
  152.  
  153.     -l:    Report all differences
  154.     -s: Silent mode.  exit code of 1 if there are differences
  155.  
  156.  
  157. comm - select or reject lines common to two sorted files
  158.  
  159.     usage: comm [-[123]] file1 file2
  160.  
  161.     -1:        Reject column 1
  162.     -2:        Reject column 2
  163.     -3:        Reject column 3
  164.  
  165.  
  166. cp - Copy files.
  167.  
  168.     usage: cp [-ipfCrRvn] f1 f2
  169.        cp [-ipfCrRvn] f1 ... fn d1
  170.        cp [-ipfCrRvn] d1 d2
  171.  
  172.     -i:    Ask before copying
  173.     -r: Recurse down directories, copying tree to new location
  174.     -R: Recurse down directories, copying tree to new location
  175.     -v: verbose
  176.     -n: show me what you're going to do, without doing it.
  177.     -p: preserve access times
  178.     -C: Convert sources files from MSDOS format to UNIX format
  179.     -f: Force removal of destination files
  180.  
  181.  
  182. cpio - Archive files
  183.  
  184.     usage: cpio -o [ -acxBTvk ] [ -O <output file> ]
  185.         -i [ -BTxcdmrtuvfsSb6 ] [ -I <input file> ] [ patterns ]
  186.         -p [ -adrxlmuv ] directory
  187.  
  188.     -o:        Output mode
  189.     -i:        Input mode
  190.     -p:        Pass mode
  191.     -a:        Reset access time
  192.     -T:        No swapping in header
  193.     -k:        Skip corrupt start of tape
  194.     -c:        ASCII header
  195.     -B:        5120 byte buffer
  196.     -v:        Verbose flag
  197.     -d:        Create directories
  198.     -x:        Process special files
  199.     -h:        Process symbolic links
  200.     -m:        Reset modification time
  201.     -r:        Rename
  202.     -t:        Print table of contents
  203.     -u:        Copy unconditionally
  204.     -f:        Copy not matching
  205.     -s:        Swap bytes
  206.     -S:        Swap half words
  207.     -b:        Swap bytes and half words
  208.     -6:        Unix 6th edition
  209.     -l:        Link when possible
  210.     -I file:    Use file as input instead of stdin
  211.     -O file:    Use file as output instead of stdout
  212.  
  213.  
  214. csplit - Context or line file splitter
  215.  
  216.     usage: csplit [-s] [-k] [-nnumber] [-f prefix] file args ...
  217.  
  218.     -s:        Suppress printing of character counts
  219.     -k:        Do not delete created files on error
  220.     -f prefix    Prefix for created files (default: xx)
  221.     -n number    Maximum number of files to create (default 99)
  222.  
  223.  
  224. cut - Cut data out of a file
  225.  
  226.  
  227.     usage: cut [ -f{args} [-s] [-d separator ] ] | [ -c{args} ] [filename [...]]
  228.        
  229.     -f{args}:        Comma separated list of fields to extract
  230.     -d separator:    Field separator (default tab)
  231.     -s:            Skip lines with no fields
  232.     -c{args}:        Comma separater list of columns to extract
  233.     
  234.  
  235. date - Display / change date and time
  236.  
  237.     usage: date [-q] [+format] [[MMDDYY]hhmm[ss]]
  238.  
  239.     -q:
  240.     +format:    Display date/time using specified format string
  241.  
  242.     If a new date/time is supplied (last parameter), the system date and
  243.     time is updated.
  244.  
  245.     The format string is constructed as for the library function strftime
  246.     (cf printf).  The following format specifiers are supported:
  247.  
  248.     a    Short day name
  249.     A    Full day name
  250.     b    Short month name
  251.     B    Full month name
  252.     c    Date and Time (%x %X)
  253.     d    Day of month, 2 digits
  254.     D    Long date (%d/%m/%y)
  255.     E    Era name and year
  256.     F    Full month name
  257.     h    Short month name
  258.     H    24 Hour, 2 digits
  259.     I    12 Hour, 2 digits
  260.     j    Day of year, 3 digits
  261.     m    Month number, 2 digits
  262.     M    Minute number, 2 digits
  263.     n    Newline character
  264.     o    Era year (from 0)
  265.     N    Era name (AD)
  266.     p    AM/PM
  267.     r    12 hour Time (%I:%M:%S %p)
  268.     S    Second number, 2 digits
  269.     t    Tab character
  270.     T    24 Hour Time (%H:%M:%S)
  271.     U    Sunday Week of year, 2 digits
  272.     w    Weekday number, 2 digits
  273.     W    Monday Week of year, 2 digits
  274.     x    Shor